import { mergeOptions } from "../utils/index";

export function initGlobalApi(Vue) {
  // 语法结构
  // {created: [a,b,c], watch: [a,b,c]}

  Vue.options = {};
  Vue.Mixin = function (mixin) {
    // 合并对象
    this.options = mergeOptions(this.options, mixin);
    // console.log('Vue.options===', Vue.options)
  }
}
